package com.ssy.lingxi.platform.manage.constant;

import com.ssy.lingxi.common.language.LanguageHolder;

/**
 * 通用布尔枚举 - enum
 * @author fhj
 * @date 2020/10/29
 * @version 2.0.0
 */
public enum CommonBooleanEnum {

    NO(0, "否"),
    YES(1, "是");

    private final Integer code;

    CommonBooleanEnum(Integer code, String message) {
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return LanguageHolder.getName(this.getClass(),this.code);
    }
}
